﻿using Nancy;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SAP.BusinessOne.Cockpit.Services;

namespace SAP.BusinessOne.Cockpit.Handlers
{
    public class KPIModule : CockpitModule
    {
        public KPIModule()
            : base("kpi")
        {
            Get["/{id:int}"] = parameters => Response.AsJson(new KPIService().GetKPI((int)parameters.id));
        }
    }
}
